home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc International / Development / TSMTEsample⁄1.1 / Source / SamplePartGlobals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-14  |  1.8 KB  |  98 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SamplePartGlobals.h
  3.  
  4.     Contains:    SamplePart globals
  5.  
  6.     Written by:    Steve Smith
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11.  
  12. #ifndef _SAMPLEPARTGLOBALS_
  13. #define _SAMPLEPARTGLOBALS_
  14.  
  15. // -- OpenDoc --
  16.  
  17. #ifndef _ODTYPES_
  18. #include <ODTypes.h>
  19. #endif
  20.  
  21. #ifndef SOM_Module_OpenDoc_StdDefs_defined
  22. #include <StdDefs.h>
  23. #endif
  24.  
  25. #ifndef _ITEXT_
  26. #include <IText.h>
  27. #endif
  28.  
  29. // -- MacToolbox --
  30.  
  31. #ifndef __TYPES__
  32. #include <Types.h>
  33. #endif
  34.  
  35. //ForTSMTE
  36. #ifndef __TSMTE__   
  37. #include "TSMTE.h"
  38. #endif
  39.  
  40. class ODMenuBar;
  41. class ODFocusSet;
  42.  
  43.  
  44. //==============================================================================
  45. // Globals
  46. //==============================================================================
  47.  
  48. struct SamplePartGlobals; // forward
  49.  
  50. extern    ODUShort            gGlobalsUsageCount;
  51. extern    SamplePartGlobals*    gGlobals;
  52.  
  53.  
  54. struct SamplePartGlobals {
  55.     public:
  56.     SamplePartGlobals();
  57.     ~SamplePartGlobals() {}
  58.     
  59.     ODMenuBar*        fMenuBar;
  60.     ODFocusSet*        fUIFocusSet;    
  61.     Handle            fThumbnail;
  62.                 
  63.     ODTypeToken        fSelectionFocus;
  64.     ODTypeToken        fMenuFocus;
  65.     ODTypeToken        fModalFocus;
  66.     ODTypeToken        fKeyFocus;        //ForTSMTE
  67.     ODTypeToken        fFrameView;
  68.     ODTypeToken        fLargeIconView;
  69.     ODTypeToken        fSmallIconView;
  70.     ODTypeToken        fThumbnailView;
  71.     ODTypeToken        fMainPresentation;
  72.             
  73.     ODScriptCode    fEditorsScript;
  74.     ODLangCode        fEditorsLanguage;
  75. };
  76.  
  77.  
  78. inline SamplePartGlobals::SamplePartGlobals()
  79. {
  80.     fMenuBar        = kODNULL;
  81.     fUIFocusSet        = kODNULL;    
  82.     fThumbnail        = kODNULL;
  83.                 
  84.     fSelectionFocus            = kODNullTypeToken;
  85.     fMenuFocus                = kODNullTypeToken;
  86.     fModalFocus                = kODNullTypeToken;
  87.     fKeyFocus                = kODNullTypeToken;        //ForTSMTE
  88.     fFrameView                = kODNullTypeToken;
  89.     fLargeIconView            = kODNullTypeToken;
  90.     fSmallIconView            = kODNullTypeToken;
  91.     fThumbnailView            = kODNullTypeToken;
  92.     fMainPresentation        = kODNullTypeToken;
  93.             
  94.     fEditorsScript        = 0;
  95.     fEditorsLanguage    = 0;
  96. }
  97.  
  98. #endif